const {
  request
} = require('../http/request.js')

module.exports = {
  /**
   * 获取我的钱包信息
   */
  getWalletInfo: () => {
    return request('api/wallet', 'GET', {}, false);
  },
  /**
   * 绑定银行卡
   */
  getBindBankCard: () => {
    return request('api/bank-info', 'GET');
  },
  /**
   * 更新银行卡信息
   */
  updateBankCardInfo: (params) => {
    return request('api/bind-bank', 'POST', params);
  },
  /**
   * 获取充值明细列表
   */
  getRechargeList: (params) => {
    return request('api/charge-list', 'GET', params);
  },
  /**
   * 获取提现明细列表
   */
  getCashList: (params) => {
    return request('api/withdraw-list', 'GET', params);
  },

  /**
   * 获取收入明细
   */
  getIncomeList: (params) => {
    return request('api/income-list', 'GET', params);
  },
  /**
   * 提交提现
   */
  submitWithdraw: (params) => {
    return request('api/withdraw', 'POST', params);
  },
  /**
   * 修改昵称 或者头像
   */
  updateUserBaseInfo: (params) => {
    return request('api/user-update', 'POST', params);
  }

}